package com.fortune.servlet;
import java.io.*;

import javax.servlet.*;
import javax.servlet.http.*;

import com.rupp.servlet.HttpServletRequest;
import com.rupp.servlet.HttpServletResponse;
import com.rupp.servlet.ServletException;

public class HelloWorld extends HttpServlet {

   public void doGet(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {

	res.setContentType("text/html");
	PrintWriter out = res.getWriter();

	out.println("<HTML>");
	out.println("<HEAD><TITLE>Hello World</TITLE></HEAD>");
	out.println("<BODY>");
	out.println("<H1>Hello World</H1>");
	out.println("Today is: " + (new java.util.Date().toString()) );
	out.println("</BODY></HTML>");
   } // doGet
   
   protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		
		doGet(req, resp);
		
	}

} // HelloWorld